package common.util;

import com.google.common.collect.Maps;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 米泽鹏
 */
public class MapUtil extends cn.hutool.core.map.MapUtil {

	private MapUtil() {
		throw new AssertionError("不可实例化");
	}

	/**
	 * 把 <String, ?> 类型的map转化为 <String, Object> 类型
	 */
	public static Map<String, Object> convertToStringObject(Map<String, ?> originalMap) {
		HashMap<String, Object> targetMap = Maps.newHashMap();
		targetMap.putAll(originalMap);
		return targetMap;
	}

}
